home *** CD-ROM | disk | FTP | other *** search
/ The X-Philes (2nd Revision) / The X-Philes Number 1 (1995).iso / xphiles / hp48_2 / rpl.bat < prev    next >
DOS Batch File  |  1995-03-23  |  2KB  |  57 lines

  1. From comp.sys.handhelds Tue Jul 16 15:02:09 1991
  2. Path: seq!ecsgate!mcnc!taco!lll-winken!elroy.jpl.nasa.gov!sdd.hp.com!hp-pcd!hpcvra.cv.hp.com!rnews!hpcvbbs!akcs.joehorn
  3. From: akcs.joehorn@hpcvbbs.UUCP (Joseph K. Horn)
  4. Newsgroups: comp.sys.handhelds
  5. Subject: HP 48 System RPL Tools, DOS batch program for compilation
  6. Message-ID: <2872bce5:3626comp.sys.handhelds@hpcvbbs.UUCP>
  7. Date: 4 Jul 91 06:40:06 GMT
  8. Lines: 45
  9.  
  10. The new HP System RPL Developer's Tools are so powerful and full of
  11. options that I kept typing the wrong command or option at the wrong
  12. time, and munging evrything up.  Most of the time I just want to
  13. type a System RPL Source Code file on the PC, and simply create the
  14. downloadable binary HP 48 object file from it.
  15.  
  16. Here's a BATch file that you will find useful.  Put it into your RPL
  17. directory with all the other HP tools.  Save it as "RPL.BAT".
  18.  
  19. After typing a System RPL Source Code file, save it with a filename
  20. extension of .S (for "Source"), and then just type "RPL filename"
  21. and in a few seconds you'll have "filename" ready to download!
  22. No need to worry about which of the three programs to run first or
  23. second or third, and no options and syntax to remember.
  24.  
  25. RPLCOMP, SASM and SLOAD are HP tools; the rest is good ol' DOS.
  26.  
  27. I hope this helps you all; it sure saves me time!
  28.  
  29. -- Joseph K. Horn -- Peripheral Vision, Ltd. --
  30.  
  31. --------------------- cut hither ------------------------------------
  32. @echo off
  33.  
  34. rem - RPL.BAT, a batch file for automated source-to-binary compiling.
  35. rem - by Joseph K. Horn, 3 July 1991; uses HP's System RPL Tools
  36.  
  37. rem - Type RPL FRED to use FRED.S (system RPL source code)
  38. rem -   to create FRED (binary downloadable object).
  39.  
  40. rem - Assumes that all the HP tools are in the current path,
  41. rem - to which the SASM_LIB environment variable has also been SET.
  42. rem - The FRED.S (source file) is not modified.
  43. rem - Creates and then deletes FRED.A, FRED.M, and FRED.o
  44.  
  45. rem - If FRED.S does not exist, RPL.BAT has no effect.
  46.  
  47. if not exist %1.s exit
  48. rplcomp %1.s %1.a
  49. if exist %1 del %1
  50. sasm -N %1
  51. echo SE ENTRIES.o > %1.m
  52. echo RE %1.o >> %1.m
  53. sload -H -N -o %1 %1.m
  54. for %%f in (%1.a %1.m %1.o) do del %%f
  55. --------------------- cut thither -----------------------------------
  56.  
  57.